a = 1
print(a)
print(-a)
print(1+1)
print(2-1)
print(2*3)
print(3/2)
print(3%2)
print(3//2)
print(10*2)
print(10.2+10)
print(1.0+True+1)
a = 1
b = 2
print(a > b)
print(a <= b)
print(1.0 == 1)
print(1.0 != 1)
a = 'Hello'
b = 'Hello'
print(a==b)
a = 'World'
print(a>b)
a = []
b = [2,1]
print(a>b)
a = ['2']
          #print(a>b)     #不兼容，报错
a = 1
b = 0
def f1():
    print('--进入函数f1--')
    return True

print((a>b)or f1())
print((a<b)or f1())
print((a>b)and f1())

a = 0b10110010    #十进制数178
b = 0b01011110    #十进制数94
print(a | b)
print(a & b)
print(a ^ b)
print(~a)
print(a >> 2)
c = -20
print(~c)

a = 1
b = 2
a += b
print(a)
a += b + 3
print(a)
a -= b
print(a)
a *= b
print(a)
a /= b
print(a)
a %= b
print(a)
a = 0b10110010
b = 0b01011110
a |= b
print(a)
a ^= b
print(a)